﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Zt.QmtqDemo.Web.Model;
using Volo.Abp.DependencyInjection;
using Zt.QmtqDemo.ConfmPlan;

namespace Zt.QmtqDemo.Web.Services
{
    public class FlatProductService: ITransientDependency
    {
        IList<Tmrbr001ConfirmPlanResultDto> dataSource;
        private IConfmPlanAppService confmPlanAppService;

        public FlatProductService(IConfmPlanAppService confmPlanAppService)
        {
            this.confmPlanAppService = confmPlanAppService;

        }

        //public async Task<IQueryable<Tmrbr001ConfirmPlanResultDto>> Load()
        //{
        //    dataSource = this.confmPlanAppService.GetTmr01_ConfirmPlan(new QueryTmrbr001InputDto());

        //    return dataSource.AsQueryable();
        //}

        //public async Task<IQueryable<Tmrbr001ConfirmPlanResultDto>> GetTmr01_ConfirmPlan(QueryTmrbr001InputDto queryTmrbr001Input)
        //{
        //    dataSource = await this.confmPlanAppService.GetTmr01_ConfirmPlan(queryTmrbr001Input);

        //    return dataSource.AsQueryable();

        //}
    }
}
